package com.yunxi.sell.service;

import com.github.pagehelper.PageInfo;
import com.yunxi.core.web.ApiResult;
import com.yunxi.core.web.ResponseUtil;
import com.yunxi.sell.pojo.CarSellPartnerQueryReqVO;
import com.yunxi.sell.pojo.CarSellPartnerQueryRespVO;
import com.yunxi.sell.pojo.CarSellPartnerSaveReqVO;
import com.yunxi.sell.pojo.CarSellPartnerSetAppStatusReqVO;
import com.yunxi.vip.pojo.VipVO;

import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;

public class CarSellPartnerDubboServiceMock implements CarSellPartnerDubboService {
    @Override
    public CarSellPartnerQueryRespVO getById(String id) throws InvocationTargetException, IllegalAccessException {
        return null;
    }

    @Override
    public void removeById(String id) {

    }

    @Override
    public PageInfo<CarSellPartnerQueryRespVO> findPageByVO(CarSellPartnerQueryReqVO carSellPartnerVO, Integer pageNum, Integer pageSize) throws InvocationTargetException, IllegalAccessException {
        PageInfo<CarSellPartnerQueryRespVO> p = new PageInfo<CarSellPartnerQueryRespVO>();
        List list = new ArrayList();
        CarSellPartnerQueryRespVO v = new CarSellPartnerQueryRespVO();
        v.setMemo("暂无数据");
        list.add(v);
        p.setList(list);
        return p;
    }

    @Override
    public void removeByListVo(List<CarSellPartnerQueryReqVO> carSellPartnerVOList) throws IllegalAccessException, InvocationTargetException, InstantiationException {

    }

    @Override
    public List listByVo(CarSellPartnerQueryReqVO carSellPartnerVO) {
        List list = new ArrayList();
        CarSellPartnerQueryRespVO v = new CarSellPartnerQueryRespVO();
        v.setMemo("暂无数据");
        list.add(v);
        return list;
    }

    @Override
    public boolean setAppStatus(CarSellPartnerSetAppStatusReqVO vo) {
        return false;
    }

    @Override
    public ApiResult save(CarSellPartnerSaveReqVO carSellPartnerVO) {
        return ResponseUtil.fail900();
    }

    @Override
    public ApiResult saveCas(CarSellPartnerSaveReqVO carSellPartnerVO) {
        return ResponseUtil.fail900();
    }
}
